<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="__JS__/test.js" type="text/javascript"></script>
</head>
<body>
{include file="public/header"/}
sajgdvja <br>
<img src="__IMG__/8.jpg" width="300px" alt="">
__JS__ <br>
<hr>
<{$str}>
<hr>
<{$arr1[1]}>
<br>
<{$arr1[0]}>
<hr>
<{$person['name']}>
<br>
<{$person['age']}>
<hr>
<{$persons[0]['name']}>
<hr>
<{$obj->name}>
<br>
<{$obj->nickname}>
<hr>
<{$name}>
<br>
<{$age}>
<hr>
{foreach name="arr1" item="v" key="k"}
    <{$k}> -- <{$v}> <br>
{/foreach}
<hr>
{volist name="persons" id="vo"}
    <{$vo['id']}> -- <{$vo['name']}> <br>
{/volist}
<hr>
<{$str|md5}> --<{$str|substr=0,2}>
<hr>
<{$time|date='Y-m-d H:i'}>
<hr>
<{$name|md5|upper|raw|substr=0,10}>
<hr>
<{:md5($name)}>
<hr>
{eq name="name" value="value"}value{/eq}
<hr>
{egt name="num" value="5"}<{$num}>{/egt}
<hr>
<{$status?'正常':'错误'}>
<!-- echo !empty($status) ? '正常' : '错误'; -->
<hr>
<{$name??'默认值'}>
<!-- echo isset($name) ? htmlentities($name) : '默认值';  -->
<hr>
<{$name?='默认值'}>
<!-- if(!empty($name)) echo '默认值'; -->
<hr>
<{$name1?:'NO'}>
<!-- echo !empty($name1) ? htmlentities($name1) : 'NO'; -->
<hr>
<{$a==$b?'yes':'no'}>
<!-- echo $a==$b ? 'yes' : 'no'; -->
<hr>
<!--注释-->
<{//$name}>
<hr>
{heq name="a" value="$b"}
相等
{else/}
不相等
{/heq}
</body>
</html>